package com.crpc.common.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface TryTimes {
    int tryTimes() default 3; // 默认尝试3次

    //重试周期 2000ms
    int intervalTime() default 2000;
}
